package com.mhkj.workflow.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.mhkj.workflow.entity.WorkFlowLogger;
import com.mics.core.system.base.repository.BaseRepository;

@Repository
public interface WorkFlowLoggerDao extends BaseRepository<WorkFlowLogger>{

	@Query("select t from WorkFlowLogger t where t.procInsId=:procInsId")
	public  WorkFlowLogger getJumpUrlByProcInsId(@Param("procInsId")String procInsId);

	@Query("select t from WorkFlowLogger t where t.id=:id")
	public  WorkFlowLogger getWorkFlowById(@Param("id")Long id);
}
